package cn.wolfcode.crm.domain;

import lombok.*;

import java.util.ArrayList;
import java.util.List;

//员工对象
@Setter@Getter@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {
    private String name;

    private String password;

    private Integer age;

    private String email;

    private boolean admin;

    //关联的one方对象
    private Department dept;

    //关系many方对象
    private List<Role> roles = new ArrayList<>();
}